<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<style>
<!--
.user_type {  }
.user_type_0 { background: #898989;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
.user_type_1 { background: #3399FF;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
.user_type_2 { background: #E75E42;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
.user_type_4 { background: #62B330;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
.user_type_8 { background: #E7BB5A;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
.user_type_16 { background: #993399;font-size: 14px;  color: #FFFFFF;text-align:center;margin: 2px}
-->
</style>
<body>
	<div class="h_a1" style="clear: both;">
		<span class="title">排名-用户数据</span>
		<div class="yjd-tip">
			<div style="width: 500px;">
				1、排名：在当前满足条件的用户中，按照筛选条件的金额进行由高到低排序，所处位置</br>
				2、姓名：用户实名的姓名，若没有实名，填“-”</br>
				3、年龄： 用户身份证对应的年龄，若没有实名，填“-”</br>
				4、待回收金额：在指定的截止时间点，该用户投资“投资项目”、“债权转让”未到期金额（包含使用的无门槛代金券、满减券，不包含利息）</br>
				5、累计投资金额：在指定的截止时间点，该用户累计投资“投资项目”、“债权转让”金额之和（包含使用的无门槛代金券、满减券；按照实际投资时间计算，不按照满标终审时间计算）</br>
				6、累计充值金额：在指定的截止时间点，该用户累计现金充值金额之和（包含网银充值、快捷充值，按实际充值成功时间计算）</br>
				7、累计提现金额：在指定的截止时间点，该用户累计现金提现金额之和（按实际提现成功时间计算）</br>
				8、用户身份：东庄用户、推广人（通过人人推广、邀请好友、分享礼包拉来过注册用户）、被推广人（被他人通过人人推广、邀请好友、分享礼包拉来注册的）、借款人（有过借款行为）</br>
			</div>
		</div>
	</div>
	<div class="wrap">
		<div class="h_a">搜索</div>
		<form
			action="${requestScope.FPWEB.rootPath }/rank/index${requestScope.FPWEB.urlStuff}"
			method="get" autocomplete="off">
			<div class="search_type cc">
				<label>截止日期：</label>
				<input name="endTime" type="text" min="2013-12-21" max="${today}" class="input length_1 mr10 J_date" value="${param.endTime}">
				<label>排名依据：</label> <select name="type" class="mr10">
					<option value="1" <c:if test="${ param.type==null || param.type ==1}" >selected</c:if>>待回收金额</option>
					<option value="2" <c:if test="${ param.type ==2}"> selected</c:if>>累计投资金额</option>
					<option value="3" <c:if test="${ param.type ==3}"> selected</c:if>>累计充值金额</option>
					<option value="4" <c:if test="${ param.type ==4}"> selected</c:if>>累计提现金额</option>
					</select>
				<label>排名范围：</label> 
					<select name="minLimit" class="mr10">
			          <option value="1" <c:if test="${param.minLimit==null || param.minLimit ==1}" >selected</c:if>>1</option>
			          <option value="100" <c:if test="${ param.minLimit ==100}" >selected</c:if>>100</option>
			          <option value="500" <c:if test="${ param.minLimit ==500}" >selected</c:if>>500</option>
			          <option value="1000" <c:if test="${ param.minLimit ==1000}" >selected</c:if>>1000</option>
			          <option value="5000" <c:if test="${ param.minLimit ==5000}" >selected</c:if>>5000</option>
			          <option value="10000" <c:if test="${ param.minLimit ==10000}" >selected</c:if>>10000</option>
			          <option value="20000" <c:if test="${ param.minLimit ==20000}" >selected</c:if>>20000</option>
			          <option value="30000" <c:if test="${ param.minLimit ==30000}" >selected</c:if>>30000</option>
			          <option value="40000" <c:if test="${ param.minLimit ==40000}" >selected</c:if>>40000</option>
			          <option value="50000" <c:if test="${ param.minLimit ==50000}" >selected</c:if>>50000</option>
			          <option value="60000" <c:if test="${ param.minLimit ==60000}" >selected</c:if>>60000</option>
			          <option value="100000" <c:if test="${ param.minLimit ==100000}" >selected</c:if>>100000</option>
			          <option value="200000" <c:if test="${ param.minLimit ==200000}" >selected</c:if>>200000</option>
			          <option value="400000" <c:if test="${ param.minLimit ==400000}" >selected</c:if>>400000</option>
			          <option value="800000" <c:if test="${ param.minLimit ==800000}" >selected</c:if>>800000</option>
			          <option value="1600000" <c:if test="${ param.minLimit ==1600000}" >selected</c:if>>1600000</option>
			        </select>——
					<select name="maxLimit" class="mr10">
			          <option value="1" <c:if test="${ param.maxLimit ==1}" >selected</c:if>>1</option>
			          <option value="100" <c:if test="${ param.maxLimit ==100}" >selected</c:if>>100</option>
			          <option value="500" <c:if test="${ param.maxLimit ==500}" >selected</c:if>>500</option>
			          <option value="1000" <c:if test="${ param.maxLimit==null || param.maxLimit ==1000}" >selected</c:if>>1000</option>
			          <option value="5000" <c:if test="${ param.maxLimit ==5000}" >selected</c:if>>5000</option>
			          <option value="10000" <c:if test="${ param.maxLimit ==10000}" >selected</c:if>>10000</option>
			          <option value="20000" <c:if test="${ param.maxLimit ==20000}" >selected</c:if>>20000</option>
			          <option value="30000" <c:if test="${ param.maxLimit ==30000}" >selected</c:if>>30000</option>
			          <option value="40000" <c:if test="${param.maxLimit ==40000 }" >selected</c:if>>40000</option>
			          <option value="50000" <c:if test="${ param.maxLimit ==50000}" >selected</c:if>>50000</option>
			          <option value="60000" <c:if test="${ param.maxLimit ==60000}" >selected</c:if>>60000</option>
			          <option value="100000" <c:if test="${ param.maxLimit ==100000}" >selected</c:if>>100000</option>
			          <option value="200000" <c:if test="${ param.maxLimit ==200000}" >selected</c:if>>200000</option>
			          <option value="400000" <c:if test="${ param.maxLimit ==400000}" >selected</c:if>>400000</option>
			          <option value="800000" <c:if test="${ param.maxLimit ==800000}" >selected</c:if>>800000</option>
			          <option value="1600000" <c:if test="${ param.maxLimit ==1600000}" >selected</c:if>>1600000</option>
			        </select>
				<button type="submit" class="btn btn_submit length_1">搜索</button>

			</div>
		</form>
		<div class="table_list">
			<c:set var="hashData"
				value="${pager.pagerModel.dataList!=null && fn:length(pager.pagerModel.dataList)>1 }" />
			<table width="100%">
				<thead>
					<tr>
						<td >排名</td>
						<td >用户名</td>
						<td >姓名</td>
						<td >年龄</td>
						<td >待回收金额</td>
						<td >累计投资金额</td>
						<td >累计充值金额</td>
						<td >累计提现金额</td>
						<td>用户身份</td>
					</tr>
				</thead>
				<tbody id="J_word_list">
					<c:forEach items="${pager.pagerModel.dataList }" var="item"
						varStatus="i">
						<tr>
							<td>${i.index+1+ 100*(pager.pagerModel.currentPage-1)}</td>
							<td>${item.user_name}</td>
							<td>${item.id_name}</td>
							<td>${item.age}</td>
							<td><f:formatNumber value="${item.borrow_price}" pattern=",##0.00" /></td>
							<td><f:formatNumber value="${item.invest_price}" pattern=",##0.00" /></td>
							<td><f:formatNumber value="${item.rechange_price}" pattern=",##0.00" /></td>
							<td><f:formatNumber value="${item.cash_price}" pattern=",##0.00" /></td>
							<td>
								<ul>
									<c:if test="${item.strMap.dz == true }">东庄</c:if>
									<c:if test="${item.strMap.user == true }">推广人</c:if>
									<c:if test="${item.strMap.shareuser == true }">被推广人</c:if>
									<c:if test="${item.strMap.jk == true }">借款人</c:if>
								</ul>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<c:if test="${pager==null || fn:length(pager.pagerModel.dataList)==0}">
					<tr >没有符合条件的数据</tr>
				</c:if>
			<!-- 分页 -->
			<div id="J_page_wrap">
				<div class="pages">
					<c:forEach items="${pager.indexModels }" var="item">
						<c:if test="${item.isNum }">
							<c:if test="${item.pageIndex==pager.pagerModel.currentPage }">
								<strong>${item.pageIndex }</strong>
							</c:if>
							<c:if test="${item.pageIndex!=pager.pagerModel.currentPage }">
								<a href="${item.pageUrl }">${item.pageIndex }</a>
							</c:if>
						</c:if>
						<c:if test="${!item.isNum }">
							<span>${item.pageIndex }</span>
						</c:if>
					</c:forEach>
					${pager.pagerModel.count } 条记录 ${pager.pagerModel.currentPage
					}/${pager.pagerModel.pageCount } 页
				</div>
			</div>
		</div>

	</div>
	<script>
		YJD.use('AppAdminCommon');
	</script>
</body>